class {
  x = 1;
  y = 2;
  onCreate() {
    this.stuff();
  }
}

<div/>